<div class="modal fade" id="sign-in-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" ng-controller="SigninmodalCtrl">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
				<h4 class="modal-title" id="myModalLabel">Sign in</h4>
			</div>
			<div class="modal-body">
				<form role="form" name="userForm">
					<div class="form-group" ng-class="{ 'has-error' : userForm.email.$invalid && userForm.email.$dirty}">
						<label for="exampleInputEmail1">Email</label>
						<input name="email" type="email" class="form-control" id="exampleInputEmail1" placeholder="Email" ng-model="email" required>
						<span class="help-block" ng-show="userForm.email.$invalid && userForm.email.$dirty">Please enter a valid Email.</span>
					</div>
					<div class="form-group" ng-class="{ 'has-error' : userForm.password.$invalid && userForm.password.$dirty}">
						<label for="exampleInputPassword1">Password</label>
						<input name="password" type="password" class="form-control" id="exampleInputPassword1" placeholder="Password" ng-model="password" required>
						<span class="help-block" ng-show="userForm.password.$invalid && userForm.password.$dirty">{{ userForm.password.error ? userForm.password.error : "Please enter a password."}}</span>
					</div>
					<!--<div class="checkbox">-->
						<!--<label>-->
							<!--<input type="checkbox" ng-model="remember_me"> Remember me-->
						<!--</label>-->
					<!--</div>-->
				</form>
			</div>
			<div class="modal-footer">
				<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
				<button type="button" class="btn btn-primary" ng-click="submit(userForm.$valid)" ng-disabled="userForm.$invalid">Submit</button>
			</div>
		</div>
	</div>
</div>

<div class="modal fade" id="sign-up-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" ng-controller="SignupmodalCtrl">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
				<h4 class="modal-title" >Sign Up</h4>
			</div>
			<div class="modal-body">
				<form role="form" name="userForm">
					<div class="form-group" ng-class="{ 'has-error' : userForm.email.$invalid && userForm.email.$dirty}">
						<label for="signUpInputEmail">Email</label>
						<input name="email" type="email" class="form-control" id="signUpInputEmail" placeholder="Email" ng-model="email" required>
						<span class="help-block" ng-show="userForm.email.$invalid && userForm.email.$dirty">Please enter a valid Email.</span>
					</div>
					<div class="form-group" ng-class="{ 'has-error' : userForm.password1.$invalid && userForm.password1.$dirty}">
						<label for="signUpInputPassword1">Password</label>
						<input name="password1" type="password" class="form-control" id="signUpInputPassword1" placeholder="Password" ng-model="password1" required>
						<span class="help-block" ng-show="userForm.password1.$invalid && userForm.password1.$dirty">{{ userForm.password1.error ? userForm.password1.error : "Please enter a password."}}</span>
					</div>
					<div class="form-group" ng-class="{ 'has-error' : userForm.password2.$invalid && userForm.password2.$dirty}">
						<label for="signUpInputPassword2">Password</label>
						<input name="password2" type="password" class="form-control" id="signUpInputPassword2" placeholder="Confirm Password" ng-model="password2" required>
						<span class="help-block" ng-show="userForm.password2.$invalid && userForm.password2.$dirty">{{ userForm.password2.error ? userForm.password2.error : "Please enter a confirm password."}}</span>
					</div>
				</form>
			</div>
			<div class="modal-footer">
				<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
				<button type="button" class="btn btn-primary" ng-click="submit()">Submit</button>
			</div>
		</div>
	</div>
</div>